const express = require('express');
const db = require('./db/index');
const Students = require('./index');
const app = express();
(async() => {
    await db;
    const result = await Students.create({
        name: 'yifan',
        age: 102,
        sex: '男',
        stu_id: '0007',
        createDate: Date.now(),
        info: '吃喝玩乐'
    });
    console.log(result);
})()



app.listen(8000, err => {
    if (!err) console.log('server启动成功');
    else console.log(err);
})